Skip to content

fix: add api_keys.get + expose retry_after on rate limit errors#41

Merged
caballeto merged 1 commit into
mainfrom
fix/api-keys-get-retry-after
Jun 11, 2026
Merged

fix: add api_keys.get + expose retry_after on rate limit errors#41
caballeto merged 1 commit into
mainfrom
fix/api-keys-get-retry-after

Conversation

@caballeto

Copy link
Copy Markdown
Member

Summary

  • Add api_keys.get(id) method (the API supports GET /api/v1/api-keys/{id} but the SDK was missing this method)
  • Expose retry_after: int | None on DevhelmApiError — parses the Retry-After header on 429 responses so users can implement backoff without manual header parsing

Test plan

  • mypy src/ (strict) — clean
  • ruff check + ruff format --check — clean
  • pytest — 787 tests passed
  • New tests: api_keys.get callable + path, retry_after parsed/absent/non-numeric

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@caballeto caballeto merged commit a414f37 into main Jun 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant